﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Mathmall.Administration.Migrations
{
    /// <inheritdoc />
    public partial class changeBrandShowStatusTypeToBool : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<bool>(
                name: "ShowStatus",
                table: "Brand",
                type: "bit",
                nullable: true,
                comment: "显示状态[0-不显示；1-显示]",
                oldClrType: typeof(byte),
                oldType: "tinyint",
                oldNullable: true,
                oldComment: "显示状态[0-不显示；1-显示]");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<byte>(
                name: "ShowStatus",
                table: "Brand",
                type: "tinyint",
                nullable: true,
                comment: "显示状态[0-不显示；1-显示]",
                oldClrType: typeof(bool),
                oldType: "bit",
                oldNullable: true,
                oldComment: "显示状态[0-不显示；1-显示]");
        }
    }
}
